cmake_minimum_required(VERSION 3.0)
project(pcl_binvox)
# Use C++ 11
if(CMAKE_COMPILER_IS_GNUCXX)
  add_definitions("-std=c++14")
endif()
find_package(PCL REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
find_package(OpenCV REQUIRED)

include_directories(
  ${INCLUDE_DIRECTORIES}
  ${PCL_INCLUDE_DIRS}
  ${OpenCV_INCLUDE_DIRS})

link_directories(${LINK_DIRECTORIES} ${PCL_LIBRARY_DIRS})
add_executable(area area.cc)
target_link_libraries(area ${PCL_LIBRARIES} ${OpenCV_LIBRARIES})
